package city.spring.modules.personnel.service;

import city.spring.modules.personnel.entity.EmployeePostEntity;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * Service：岗位
 *
 * @author pxm
 * @date 2020-08-06 15:41:40
 */
public interface EmployeePostService extends IService<EmployeePostEntity> {
    String CACHE_NAME = "employee_post";

    /**
     * 业务处理：保存一个 <strong>岗位</strong>
     *
     * @param entity 岗位
     */
    void saveEmployeePost(EmployeePostEntity entity);

    /**
     * 业务处理：修改一个 <strong>岗位</strong>
     *
     * @param entity 岗位
     */
    void updateEmployeePost(EmployeePostEntity entity);

    /**
     * 业务处理：删除一个 <strong>岗位</strong>
     *
     * @param primaryKey 主键ID
     */
    void deleteEmployeePost(String primaryKey);

    /**
     * 业务处理：删除多个 <strong>岗位</strong>
     *
     * @param primaryKeys 主键ID列表
     */
    void deleteEmployeePost(List<String> primaryKeys);
}